Page({
  data: {
    menuitems: [
      {
        text: "我的分享",
        url: "/pages/myShare/myShare",
        icon: "../../images/asserts/share.png",
        tips: "",
      },
      {
        text: "我的推荐",
        url: "#",
        icon: "../../images/asserts/commond.png",
        tips: "",
      },
      {
        text: "员工认证",
        url: "/pages/me/me",
        icon: "../../images/asserts/confirm.png",
        tips: "",
      },
      {
        text: "退出登录",
        url: "#",
        icon: "../../images/asserts/exit.png",
        tips: "",
      },
    ],
    userInfo: {},
    isConfirm: false
  },
  onLoad(options) {
    if(wx.getStorageSync('isConfirm')) {
      this.setData({
        isConfirm:true
      })
      
    } else {
      wx.setStorageSync('isConfirm', false);
    }
    
    let userInfo = wx.getStorageSync('userInfo');
    console.log(userInfo,"12312");
    userInfo &&
      this.setData({
        userInfo,
      });
      
  },
  onShow() {
    if(wx.getStorageSync('isConfirm')) {
      this.setData({
        isConfirm:true
      })
      
    } else {
      wx.setStorageSync('isConfirm', false);
    }
  },
  onReady() {},
  onPullDownRefresh() {},
  onReachBottom() {},
  onShareAppMessage() {},
});
